import 'package:flutter/material.dart';
import 'package:flutter_demo/tmac/util/DataUtil.dart';

class ContainerPage extends StatefulWidget{
  @override
  State<StatefulWidget> createState() {
    return new ContainerState();
  }

}


class ContainerState extends State<ContainerPage>{
  @override
  void initState() {
    // TODO: implement initState
    super.initState();

  }
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("Container"),leading: new GestureDetector(
        onTap: ()=>Navigator.pop(context),
        child: Icon(Icons.arrow_back,color: Colors.white,),
      ),),
      body: SafeArea(child: SingleChildScrollView(
        child: Container(
          child: Padding(padding: EdgeInsets.all(10),child: Column(
            children: <Widget>[
              Align(alignment: Alignment.topLeft,child:
              Text("Container介绍",style: TextStyle(fontWeight: FontWeight.bold,fontSize: 16,),),),
              Center(
                child: Text(DataUtil.containerIntroduce(),textAlign: TextAlign.left,),
              ),
              Text("Container定义",textAlign: TextAlign.left,),
              Image.asset("images/icon_container.png")


            ],
          ),)
        ),
      ),)
    );
  }

}
